Skip to content

Conversation

@pst67662
Copy link
Contributor

Closes

✅ Pull Request Checklist:

  • Included link to corresponding Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exist for this component).
  • Looked at the Accessibility Standard and/or talked to @mijordan about Accessibility for this feature.

📝 Test Instructions:

🧢 Your Team:

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@pst67662 pst67662 changed the base branch from docs-website to master February 13, 2020 13:20
@pst67662 pst67662 changed the base branch from master to docs-website February 13, 2020 13:21
@adobe-bot
Copy link

Build successful! 🎉

@pst67662 pst67662 changed the title [WIP] RSP-1263 Documentation for StatusLight RSP-1263 Documentation for StatusLight Feb 13, 2020
prompting a response, or distinguishing a visual element."
If StatusLight communicates a state, like "Approved" or "Failed", that state must be included as part of the label.

#### Using role="status"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a follow up, we'll probably have to support h4's so they get properly styled in the Layout. No need to change here, just wanted to note

@LFDanLu
Copy link
Member

LFDanLu commented Feb 13, 2020

@pst67662 Ah forgot to mention, but you'll probably want to change this pull to point to master instead of docs-website.

@adobe-bot
Copy link

Build successful! 🎉

@pst67662 pst67662 changed the base branch from docs-website to master February 14, 2020 12:24
@pst67662
Copy link
Contributor Author

@LFDanLu I tried to rebase and ended up with commits from docs branch :/ sooo I'll reopen this PR

@LFDanLu
Copy link
Member

LFDanLu commented Feb 14, 2020

@pst67662 Ah, you can always try git reset --soft origin/master, then add and commit the file you want only if rebasing isn't working. You'll have to git push -f after though and the commit history will be lost so up to you though

@devongovett
Copy link
Member

git rebase -i origin/master and then mark each commit that's already merged as drop

@pst67662 pst67662 changed the base branch from master to docs-website February 18, 2020 13:15
@adobe-bot
Copy link

Build successful! 🎉

@pst67662 pst67662 changed the base branch from docs-website to master February 18, 2020 13:37

## Content

A visible label can be provided by passing children. Spectrum dictates that it should always be used with a label, never alone.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should say 'Spectrum dictates'.
Maybe:
A visible label is always required and can be provided by passing children.


### Accessibility

If no visible label is provided (e.g. an icon only button),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In content you said a visible label is always required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I need a little help with this one... we define children as required in react-types, but then we also check for aria-label if there are no children in StatusLight.tsx: https://github.com/adobe-private/react-spectrum-v3/blob/master/packages/%40react-spectrum/statuslight/src/StatusLight.tsx#L18

should label/children be optional then? @majornista

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Label/children should not be optional, but the warning is helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is something like "If textual child is not provided (e.g. an icon only)" OK?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example for "aria-label" added

@adobe-bot
Copy link

Build successful! 🎉

Copy link
Member

@LFDanLu LFDanLu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 small suggestion and a question but otherwise looks good to me.

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

Copy link
Member

@LFDanLu LFDanLu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@pst67662 pst67662 merged commit 8340006 into master Feb 28, 2020
@dannify dannify deleted the statuslight_docs branch April 13, 2020 22:42
devongovett pushed a commit that referenced this pull request Jul 25, 2024
* Fix menu zindex issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants